﻿<%@ Page Title="GestionSocio" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false"
CodeFile="GestionSocio.aspx.vb" Inherits="GestionSocio" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content> 
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    GESTION SOCIOS<br />
    <br />
    <br />
        DNI*:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtDNI" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:Label ID="Label1" runat="server" Text="CLAVE"></asp:Label>
    <asp:TextBox ID="txtClave" runat="server"></asp:TextBox>
    <br />
    <br />
        Apellido*:
        <asp:TextBox ID="txtApellido" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nombre*:
        <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
        <br />
        <br />
        Domicilio:
        <asp:TextBox ID="txtDomicilio" runat="server" Width="400px"></asp:TextBox>
&nbsp;
        <br />
        <br />
        E-mail*:&nbsp;&nbsp;&nbsp; 
        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
        <br />
        <br />
        Teléfono*:&nbsp;<asp:TextBox ID="txtTelefono" runat="server" Width="133px"></asp:TextBox>
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Mostrar todos" />
        <br />
        <br />
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Text="Guardar Datos" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button4" runat="server" Text="Eliminar Socio" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button5" runat="server" Text="Cancelar" />
    <br />
<br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="DNI" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="DNI" HeaderText="DNI" ReadOnly="True" 
                SortExpression="DNI" />
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                SortExpression="Nombre" />
            <asp:BoundField DataField="Apellido" HeaderText="Apellido" 
                SortExpression="Apellido" />
            <asp:BoundField DataField="Clave" HeaderText="Clave" SortExpression="Clave" />
            <asp:BoundField DataField="TipoUsuario" HeaderText="TipoUsuario" 
                SortExpression="TipoUsuario" />
            <asp:BoundField DataField="Domicilio" HeaderText="Domicilio" 
                SortExpression="Domicilio" />
            <asp:BoundField DataField="Telefono" HeaderText="Telefono" 
                SortExpression="Telefono" />
            <asp:BoundField DataField="Correo" HeaderText="Correo" 
                SortExpression="Correo" />
            <asp:BoundField DataField="Activo" HeaderText="Activo" 
                SortExpression="Activo" />
        </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:BDSerVitalConnectionString %>" 
    SelectCommand="SELECT * FROM [Socios]"></asp:SqlDataSource>
    <br />
    <br />


</asp:Content> 